package com.haierp.controller;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.haierp.util.JsonResult;
import com.wangzhixuan.commons.base.BaseController;
import com.wangzhixuan.service.IResourceService;

/**
 * @description：资源管理
 * @date：2015/10/1 14:51
 */
@Controller
@RequestMapping("/haiResource")
public class HaiResourceController extends BaseController {

    @Autowired
    private IResourceService resourceService;

    @RequestMapping("/queryResUrl")
	@ResponseBody
    public Object queryResUrl() {
    	JsonResult<Set<String>> result = new JsonResult<>();
    	Set<String> resList = resourceService.queryResUrl(getShiroUser());
        return result.buildIsSuccess(true).buildData(resList);
    }

   
}
